{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_cjdianc/template/public/ygcsslist.css">
<style type="text/css">
    .yg5_key>div{float: left;line-height: 34px;}
    .store_td1{height: 45px;}
    .store_list_img{width: 40px;height: 40px;}
    .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;font-size: 12px;}
    .yg5_tr2>td{padding: 10px 15px;border: 1px solid #e5e5e5;text-align: center;}
    .yg5_tr1>th{
        border: 1px solid #e5e5e5;
        padding-left: 15px;
        background-color: #FAFAFA;
        font-weight: bold;
        text-align: center;
    }
    .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
    .store_inp{margin-left: 5px;}
    .ygshanchu{color: white;background-color: #44ABF7;}
    .accout_inp{width: 100%;height: 35px;border: 1px solid #cccccc;font-size: 14px;color: #333;}
/*    .navback{display: none;}*/
/*    .yg_back{margin-left: 170px;}*/
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li class="active"><a href="javascript:void(0);">积分记录</a></li>
</ul>
<div class="main">
<div class="panel panel-default">
        <div class="panel-body">
        <form action="" method="get" class="col-md-4">
                   <input type="hidden" name="c" value="site" />
                   <input type="hidden" name="a" value="entry" />
                   <input type="hidden" name="m" value="zh_cjdianc" />
                   <input type="hidden" name="do" value="userjf" />
            <div class="input-group" style="width: 100px">
                {php echo tpl_form_field_daterange('time',$_GPC['time'],true);}
                <span class="input-group-btn">
                    <input type="submit" class="btn btn-default" name="submit2" value="查找"/>
                </span>
            </div><!-- /input-group -->
            <input type="hidden" name="user_id" value="{$_GPC['user_id']}"/>
            <input type="hidden" name="token" value="{$_W['token']}"/>
        </form>
               </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            会员列表
        </div>
        <div class="panel-body" style="padding: 0px 15px;">
            <div class="row">
                <table class="yg5_tabel col-md-12" id="test_table">
                    <tr class="yg5_tr1">
                    <!-- 批量部分 -->
                        <th class="store_td1 col-md-1" >id</th>
                        <th class="store_td1 col-md-1" >会员</th>
                        <th class="store_td1 col-md-1" >来源</th>
                        <th class="store_td1 col-md-1" >状态</th>
                        <th class="col-md-1">积分</th>
                        <th class="col-md-2">备注</th>
                        <th class="col-md-2">时间</th>
                    </tr>
                      {loop $list  $row}
                    <tr class="yg5_tr2">
                        <td >{$row['id']}</td>
                        <td >{$row['user_id']}</td>
                        <td >{$row['type']}</td>
                        <td >{if $row['status']==1}收入{else}支出{/if}</td>
                        <td >{if $row['status']==1}<font color="green">{$row['points']}</font>{else}<font color="red">-{$row['points']}</font>{/if}</td>
                        <td >{$row['desc']}</td>
                        <td >{$row['create_time']}</td>
                    </tr>
                    {/loop}
                      {if empty($list)}
                    <tr class="yg5_tr2">
                        <td colspan="9">
                          暂无记录
                        </td>
                    </tr>
                    {/if}
                     
                    
                </table>
            </div>
        </div>
    </div>
</div>
<div class="text-right we7-margin-top">
     {$pager}
</div>


<!-- {template 'common/footer'} -->
<script type="text/javascript">
    $(function(){
        $("#frame-12").addClass("in");
        $("#frame-12").show();
        $("#yframe-12").addClass("wyactive");
        
    })
</script>
